<template>
  <div class="judge">
    <!-- 题干 -->
    <div
      v-for="(item, index) in body.questionContent_arr"
      :key="index"
      class="questionContent_arr"
    >
      <div v-html="item"></div>
    </div>
    <div v-if="JSON.parse(body.solution).html" class="answer">
      答案：{{ JSON.parse(body.solution).html }}
    </div>
  </div>
</template>

<script>
export default {
  props: {
    body: {
      default: function () {
        return {}
      }
    }
  },
  data () {
    return {}
  },
  created () {},
  mounted () {},
  methods: {}
}
</script>

<style lang="scss" scoped>
.judge {
  font-size: 14px;
  line-height: 28px;
  .answer {
    color: #de394a;
  }
  .questionContent_arr {
    img {
      padding: 10px 0;
    }
  }
  .myAnswer {
    padding: 14px;
    padding-left: 0;
    color: #de394a;
  }
  .progress {
    background: rgba(255, 255, 255, 1);
    padding-top: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    .onecircle {
      margin-right: 24px;
    }
  }
  .bool_btn {
    display: flex;
    // justify-content: center;
    padding-top: 28px;
    .btns {
      width: 72px;
      height: 32px;
      border-radius: 4px;
      border: 2px solid rgba(51, 51, 51, 1);
      text-align: center;
      line-height: 32px;
      font-size: 16px;
      font-family: SourceHanSansCN-Medium, SourceHanSansCN;
      font-weight: 500;
      color: rgba(51, 51, 51, 1);
      margin-right: 20px;
      cursor: pointer;
    }
    .active {
      background: rgba(255, 190, 51, 1);
      border: 2px solid rgba(255, 190, 51, 1);
    }
  }
}
.judge-move {
  font-size: 0.18rem;
  line-height: 0.28rem;
  .questionContent_arr {
    img {
      padding: 0.2rem 0;
    }
  }
  .myAnswer {
    padding: 0.14rem;
    padding-left: 0;
  }
  .progress {
    background: rgba(255, 255, 255, 1);
    padding-top: 0.1rem;
    border-radius: 0.08rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    .onecircle {
      margin-right: 0.24rem;
    }
  }
  .bool_btn {
    display: flex;
    // justify-content: center;
    padding-top: 0.28rem;
    .btns {
      padding: 0.12rem 0.24rem;
      border-radius: 0.08rem;
      border: 0.02rem solid rgba(51, 51, 51, 1);
      text-align: center;
      font-size: 0.14rem;
      font-family: SourceHanSansCN-Medium, SourceHanSansCN;
      font-weight: 500;
      color: rgba(51, 51, 51, 1);
      margin-right: 0.2rem;
      cursor: pointer;
    }
    .active {
      background: rgba(255, 190, 51, 1);
      border: 0.02rem solid rgba(255, 190, 51, 1);
    }
  }
}
</style>
